package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.JiajiaCharityActivities;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 公益活动信息Mapper接口
 * 
 * @author ruoyi
 * @date 2025-03-06
 */
public interface JiajiaCharityActivitiesMapper 
{
    /**
     * 查询公益活动信息
     * 
     * @param id 公益活动信息主键
     * @return 公益活动信息
     */
    public JiajiaCharityActivities selectJiajiaCharityActivitiesById(Long id);

    /**
     * 查询公益活动信息列表
     * 
     * @param jiajiaCharityActivities 公益活动信息
     * @return 公益活动信息集合
     */
    public List<JiajiaCharityActivities> selectJiajiaCharityActivitiesList(JiajiaCharityActivities jiajiaCharityActivities);

    /**
     * 新增公益活动信息
     * 
     * @param jiajiaCharityActivities 公益活动信息
     * @return 结果
     */
    public int insertJiajiaCharityActivities(JiajiaCharityActivities jiajiaCharityActivities);

    /**
     * 修改公益活动信息
     * 
     * @param jiajiaCharityActivities 公益活动信息
     * @return 结果
     */
    public int updateJiajiaCharityActivities(JiajiaCharityActivities jiajiaCharityActivities);

    /**
     * 删除公益活动信息
     * 
     * @param id 公益活动信息主键
     * @return 结果
     */
    public int deleteJiajiaCharityActivitiesById(Long id);

    /**
     * 批量删除公益活动信息
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteJiajiaCharityActivitiesByIds(String[] ids);

    public List<JiajiaCharityActivities> selectApiJiajiaCharityActivitiesList(JiajiaCharityActivities jiajiaCharityActivities);

    JiajiaCharityActivities selectApiJiajiaCharityActivitiesById(@Param("id") Long id,@Param("userId") Long userId);
}
